<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="美国,欧美,游戏专线独享EB,socks5代理IP,proxy" />
<meta name="description"
	content="socks5自由在线提取系统，出售包日EB，S5代理，包月独享专线，保证独享专线一个IP一个人使用，大量proxy" />
<title>无标题文档</title>
<style type="text/css">
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}

.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}

.STYLE6 {
	color: #000000;
	font-size: 14px;
}

.STYLE10 {
	color: #000000;
	font-size: 12px;
}

.STYLE19 {
	color: #344b50;
	font-size: 12px;
}

.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}

.STYLE22 {
	font-size: 12px;
	color: #295568;
}

.buylink {
	text-decoration: none;
	color: #000000;
}

.price {
	color: #344b50;
	font-size: 12px;
}

.upspan {
	text-decoration: underline;
	background-color: #98AB6F;
	font-style: italic;
	font-size: 14px;
}
</style>
<script type="text/javascript" src="<%=path%>/js/jquery-1.4.3.js"></script>
<script type="text/javascript" src="<%=path%>/admin/js/only.js"></script>
<script type="text/javascript">
	function selectItems() {
		if(confirm('确定要删除吗？')) {
			var list = "";
			var arr = document.getElementsByName("ipbox");
				for(var i=0; i<arr.length; i++) {
					if(arr[i].checked) {
						list += arr[i].value+",";
					}
				}
				if(list.length == 0) {
					alert("请选择一条记录!");
					return;
				}
				list +="0";
				var delForm = document.getElementById("delForm");
				delForm.ids.value = list;
				delForm.submit();
			}
		}
		
	function selectAll(flag) {
		var arr = document.getElementsByName("ipbox");
		for(var i=0; i<arr.length; i++) {
			arr[i].checked = flag;
		}
	}
</script>
</head>

<body>
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td height="24" bgcolor="#353c44"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td><table width="100%" border="0" cellspacing="0"
											cellpadding="0">
											<tr>
												<td height="19" valign="bottom"><img
													src="<%=path%>/images/tb.gif" width="14" height="14" /><span
													style="vertical-align: middle;" class="STYLE1">
														超级独享专线</span></td>
												<td valign="bottom"></td>
											</tr>
										</table></td>
									<td>&nbsp;</td>
								</tr>
							</table></td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td bgcolor="d3eaef" height="34px">
				<table border="0px">
					<tr>
						<td>
							<form action="<%=path%>/admin/uploadOnly.do" method="post"
								enctype="multipart/form-data">
								文件上传：<input type="file" name="file"
									style="background-color: #EEEEFF; border: 0px" /> <input
									type='submit' value='上传文件' /> <span style="color: red;">|</span>
							</form>
						</td>
						<td>
							<form action="<%=path%>/admin/delOnlyIpInfo.do" method="post"
								id='delForm'>
								<input name="ids" type="hidden" /> <input type="button"
									value="批量删除" class="button" onclick="selectItems();" />
							</form>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td bgcolor="d3eaef" height="34px">
				<form action="<%=path%>/admin/only.do" method="post">
					<table border="0px">
						<tr>
							<td width="8%" align="right">类型:&nbsp;</td>
							<td width="8%" style="color: #EEEEFF;"><select id="type"
								name="type" style="width: 80px">
									<option value="">--所有--</option>
							</select></td>
							<td width="8%" align="right">国家:&nbsp;</td>
							<td width="8%" style="color: #EEEEFF;"><select id="country"
								name="country" style="width: 80px">
									<option value="">--所有--</option>
							</select></td>
							<td width="16%">洲:&nbsp; <select id="region" name="region"
								style="width: 80px">
									<option value="">--所有--</option>
							</select>
							</td>
							<td width="20%">城市:&nbsp; <select id="city" name="city"
								style="width: 80px">
									<option value="">--所有--</option>
							</select></td>
							<td width="8%">相同IP:</td>
							<td width="3%"><s:checkbox name="repeat" /></td>
							<td style="color: #EEEEFF;"><input type="submit" value="查询" /></td>
							<td style="color: #EEEEFF;"><input type="button" value="增加"
								onclick="show();" /></td>
						</tr>
					</table>
				</form>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td><table width="100%" border="0" cellpadding="0"
					cellspacing="1" bgcolor="#a8c7ce">
					<tr>
						<td width="4%" height="20" bgcolor="d3eaef" class="STYLE10"><div
								align="center">
								<input type="checkbox" name="checkbox" id="checkbox"
									onclick="selectAll(this.checked);" />
							</div></td>
						<td width="16%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">出口地址</span>
							</div></td>
						<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">Country(国家)</span>
							</div></td>
						<td width="6%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">State(洲)</span>
							</div></td>
						<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">City(城市)</span>
							</div></td>
						<td width="6%" height="20" bgcolor="d3eaef" class="STYLE6">
							<div align="center">
								<span class="STYLE10">延迟[秒]</span>
							</div>
						</td>
						<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">更新时间</span>
							</div></td>
						<td width="6%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">代理类型</span>
							</div></td>
						<td width="6%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">所属类型</span>
							</div></td>
						<td width="6%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">价格/天</span>
							</div></td>
						<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div
								align="center">
								<span class="STYLE10">是否购买</span>
							</div></td>
					</tr>
					<tbody>
						<s:iterator value="page.result" var="ipinfo">
							<tr>
								<td height="20" bgcolor="#FFFFFF">
									<div align="center">
										<input type="checkbox" name="ipbox"
											value="<s:property value="#ipinfo.id"/>" />
									</div>
								</td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE6" align="center">
									<a class="buylink" href="javascript:;"> <span
										class="STYLE19"><s:property value="#ipinfo.exportIp" />:<s:property
												value="#ipinfo.exportPort" /></span>
								</a> <span></span>
								</td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<span class="STYLE19"><s:property
												value="#ipinfo.country" /></span>
									</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<span class="STYLE19"><s:property
												value="#ipinfo.region" /></span>
									</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<span class="STYLE19"><s:property value="#ipinfo.city" /></span>
									</div></td>
								<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div
										align="center">
										<span class="STYLE19"><s:property value="#ipinfo.speed" /></span>
									</div></td>
								<td height="20" bgcolor="#FFFFFF"><div align="center"
										class="STYLE21">
										<span class="STYLE19"><s:date name="#ipinfo.uploadTime"
												format="yyyy-MM-dd HH:mm:ss" /></span>
									</div></td>
								<td height="20" bgcolor="#FFFFFF"><div align="center"
										class="STYLE21">
										<span class="STYLE19"><s:property
												value="#ipinfo.proxyType" /></span>
									</div></td>
								<td height="20" bgcolor="#FFFFFF"><div align="center"
										class="STYLE21">
										<span class="STYLE19"><s:property value="#ipinfo.type" /></span>
									</div></td>
								<td height="20" bgcolor="#FFFFFF"><input type="hidden"
									value="<s:property value="#ipinfo.id"/>">
									<div align="center" class="price">
										<span><s:property value="#ipinfo.price" /></span>
									</div></td>
								<s:if test="#ipinfo.state == 0">
									<td height="20" bgcolor="#FFFFFF"><div align="center"
											class="STYLE21">
											<span class="STYLE19" style="color: green">否</span>
										</div></td>
								</s:if>
								<s:else>
									<td height="20" bgcolor="#FFFFFF"><div align="center"
											class="STYLE21">
											<span class="STYLE19" style="color: red">是</span>
										</div></td>
								</s:else>
							</tr>
						</s:iterator>
						<tr>
							<td align="center" colspan="14">
								<div id="onlyadd" style="display: none;">
									<form action="addOnly.do" method="post">
										<table width="75%" border="0px;" cellpadding="0"
											cellspacing="1" bgcolor="#a8c7ce">
											<tr bgcolor="d3eaef" align="center">
												<td>出口IP</td>
												<td>出口端口</td>
												<td>IP类型</td>
												<td>代理类型</td>
												<td>价格/天</td>
												<td>操作</td>
											</tr>
											<tr align="center">
												<td bgcolor="#FFFFFF"><input type="text" id="exportIp"
													name="exportIp" style="width: 145px;" /></td>
												<td bgcolor="#FFFFFF"><input type="text"
													id="exportPort" name="exportPort" style="width: 70px;" /></td>
												<td bgcolor="#FFFFFF"><select name="type"
													style="width: 80px;">
														<option>SOCKS5</option>
														<option>HTTP</option>
														<option>HTTPS</option>
														<option>SOCKS4</option>
												</select></td>
												<td bgcolor="#FFFFFF"><select name="proxyType"
													style="width: 70px;">
														<option>一代</option>
														<option>二代</option>
														<option>三代</option>
												</select></td>
												<td bgcolor="#FFFFFF"><input type="text" id="price"
													name="price" /></td>
												<td bgcolor="#FFFFFF"><input type="submit" value="保存" />
													<input type="button" onclick="hide();" value="取消" /></td>
											</tr>
										</table>
									</form>
								</div>
							</td>
						</tr>
					</tbody>
				</table></td>
		</tr>
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr bgcolor="d3eaef">
						<td width="33%"><div align="left">
								<span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;Total: <strong>
										<s:property value="page.totalCount" />
								</strong> page <strong><s:property value="page.currentPageNo" /></strong>
									of&nbsp; <strong> <s:property value="page.lastPageNo" />
								</strong> PageSize: <strong><s:property value="pageSize" /></strong>
								</span>
							</div></td>
						<td width="67%">
							<table width="312" border="0" align="right" cellpadding="0"
								cellspacing="0">
								<tr>
									<s:if test="1==page.currentPageNo">
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="First" />
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<form action="<%=path%>/admin/only.do" method="post">
													<input type="hidden" name="pageNo" value='1'> <input
														type="hidden" name="repeat"
														value="<s:property value="repeat"/>"> <input
														type="hidden" name="type"
														value="<s:property value="type"/>"> <input
														type="hidden" name="country"
														value="<s:property value="country"/>"> <input
														type="hidden" name="region"
														value="<s:property value="region"/>"> <input
														type="hidden" name="city"
														value="<s:property value="city"/>"> <input
														type="submit" style="border-color: #EEEEFF; border: 0px;"
														value="First">
												</form>
											</div></td>
									</s:else>
									<s:if test="page.hasPrevPage()">
										<td width="49"><div align="center">
												<form action="<%=path%>/admin/only.do" method="post">
													<input type="hidden" name="pageNo"
														value='<s:property value="pageNo-1"/>'> <input
														type="hidden" name="repeat"
														value="<s:property value="repeat"/>"> <input
														type="hidden" name="type"
														value="<s:property value="type"/>"> <input
														type="hidden" name="country"
														value="<s:property value="country"/>"> <input
														type="hidden" name="region"
														value="<s:property value="region"/>"> <input
														type="hidden" name="city"
														value="<s:property value="city"/>"> <input
														type="submit" style="border-color: #EEEEFF; border: 0px;"
														value="Prev">
												</form>
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="Prev" />
											</div></td>
									</s:else>
									<s:if test="page.hasNextPage()">
										<td width="49"><div align="center">
												<form action="<%=path%>/admin/only.do" method="post">
													<input type="hidden" name="pageNo"
														value='<s:property value="pageNo+1"/>'> <input
														type="hidden" name="repeat"
														value="<s:property value="repeat"/>"> <input
														type="hidden" name="type"
														value="<s:property value="type"/>"> <input
														type="hidden" name="country"
														value="<s:property value="country"/>"> <input
														type="hidden" name="region"
														value="<s:property value="region"/>"> <input
														type="hidden" name="city"
														value="<s:property value="city"/>"> <input
														type="submit" style="border-color: #EEEEFF; border: 0px;"
														value="Next">
												</form>
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="Next" />
											</div></td>
									</s:else>
									<s:if
										test="page.currentPageNo==page.lastPageNo||page.totalCount==0">
										<td width="49"><div align="center">
												<input style="border-color: #EEEEFF; border: 0px;"
													type="button" disabled="disabled" value="Last" />
											</div></td>
									</s:if>
									<s:else>
										<td width="49"><div align="center">
												<form action="<%=path%>/admin/only.do" method="post">
													<input type="hidden" name="pageNo"
														value='<s:property value="page.lastPageNo"/>'> <input
														type="hidden" name="repeat"
														value="<s:property value="repeat"/>"> <input
														type="hidden" name="type"
														value="<s:property value="type"/>"> <input
														type="hidden" name="country"
														value="<s:property value="country"/>"> <input
														type="hidden" name="region"
														value="<s:property value="region"/>"> <input
														type="hidden" name="city"
														value="<s:property value="city"/>"> <input
														type="submit" style="border-color: #EEEEFF; border: 0px;"
														value="Last">
												</form>
											</div></td>
									</s:else>
									<td width="37" class="STYLE22"><div align="center">Go</div></td>
									<td colspan="3" width="97">
										<form action="<%=path%>/admin/only.do" method="post">
											<table>
												<tr>
													<td>
														<div align="center">
															<input type="hidden" name="repeat"
																value="<s:property value="repeat"/>"> <input
																type="hidden" name="repeat"
																value="<s:property value="repeat"/>"> <input
																type="hidden" name="type"
																value="<s:property value="type"/>"> <input
																type="hidden" name="country"
																value="<s:property value="country"/>"> <input
																type="hidden" name="region"
																value="<s:property value="region"/>"> <input
																type="hidden" name="city"
																value="<s:property value="city"/>"> <input
																type="text" name="pageNo" id="pageNo"
																style="width: 20px; height: 12px; font-size: 12px; border: solid 1px #7aaebd;" />
														</div>
													</td>
													<td width="22" class="STYLE22"><div align="center">&nbsp;page</div></td>
													<td width="35"><input type="submit" value="Go"
														style="border-color: #EEEEFF; border: 0px; margin-right: 10px;"
														onclick="return search(<s:property value="page.lastPageNo"/>)"></td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table></td>
		</tr>
	</table>
</body>
</html>
